export default  {
	timeFormat(num){
		let date = new Date(num*1000)
		let weep = date.getDay()
		switch(weep){
			case 0 : weep="日";break;
			case 1 : weep="一";break;
			case 2 : weep="二";break;
			case 3 : weep="三";break;
			case 4 : weep="四";break;
			case 5 : weep="五";break;
			case 6 : weep="六";break;
		}
		return `周${weep} ${date.getMonth()+1} 月 ${date.getDate()} 日`;
	},
	dateFormat(num){
		let date = new Date(num*1000)
		return `${date.getFullYear()}年 ${date.getMonth()+1} 月 ${date.getDate()} 日`;
	},
	dateMDFormat(num){
		let date = new Date(num*1000)
		return `${date.getMonth()+1} 月 ${date.getDate()} 日`;
	},
	// 转换小时：分钟
	dateHMFormat(num){
		let date = new Date(num*1000)
		return `${date.getHours()+1} : ${date.getMinutes()} `;
	}
}